package com.iter.devbox.pattern.strategy;

public class Client {

	public static void main(String[] args) {
		//A策略
		Strategy strategyA = new ConcreteStrategyA();
		
		//B策略
		Strategy strategyB = new ConcreteStrategyB();
		
		//C策略
		Strategy strategyC = new ConcreteStrategyC();
		
		StrategyContext contextA = new StrategyContext(strategyA);
		contextA.contextMethod();
		
		StrategyContext contextB = new StrategyContext(strategyB);
		contextB.contextMethod();
		
		StrategyContext contextC = new StrategyContext(strategyC);
		contextC.contextMethod();
	}
}